﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DTO
{

    public class Sach_DTO
    {
        private string _MaSach;

        public string MaSach
        {
            get { return _MaSach; }
            set { _MaSach = value; }
        }
        private string _TenSach;

        public string TenSach
        {
            get { return _TenSach; }
            set { _TenSach = value; }
        }
        private string _MaLoaiSach;

        public string MaLoaiSach
        {
            get { return _MaLoaiSach; }
            set { _MaLoaiSach = value; }
        }
        private string _NXB;

        public string NXB
        {
            get { return _NXB; }
            set { _NXB = value; }
        }
        private float _GiaNhap;

        public float GiaNhap
        {
            get { return _GiaNhap; }
            set { _GiaNhap = value; }
        }
        private float _GiaXuat;

        public float GiaXuat
        {
            get { return _GiaXuat; }
            set { _GiaXuat = value; }
        }
        private int _SLCo;

        public int SLCo
        {
            get { return _SLCo; }
            set { _SLCo = value; }
        }
        public Sach_DTO(string masach, string tensach, string maloaisach, string manxb, float gianhap, float giaxuat, int slco)
        {
            MaSach = masach;
            TenSach = tensach;
            MaLoaiSach = maloaisach;
            NXB = manxb;
            GiaNhap = gianhap;
            GiaXuat = giaxuat;
            SLCo = slco;
        }
             
    }
    public class LoaiSach_DTO
    {
        private string _MaLoaiSach;

        public string MaLoaiSach
        {
            get { return _MaLoaiSach; }
            set { _MaLoaiSach = value; }
        }
        private string _TenLoaiSach;

        public string TenLoaiSach
        {
            get { return _TenLoaiSach; }
            set { _TenLoaiSach = value; }
        }
        public LoaiSach_DTO(string maloaisach, string tenloaisach)
        {
            MaLoaiSach = maloaisach;
            TenLoaiSach = tenloaisach;
        }
    }

}
